<?php
App::uses('AppModel', 'Model');
class Product extends AppModel {

	public $name = 'Product';
	public $useTable = 'products';

	public function getProductDetail($id = null) {
		try{
			$results = $this->query("SELECT * FROM products WHERE pro_id = " . $id . " AND pro_active = 1");
		} catch (Exception $e) {
			throw new NotFoundException(__('Invalid category'));
		}
		return  $results;
	}

}